package asava.trees;

import asava.names.Name;

/**
 * @author Tim Richter
 */
public final class Break extends Tree {
    public Name label;
    public Tree target;

    public Break(final Name label,
                 final Tree target) {
        this.label = label;
        this.target = target;
    }

    @Override
    public int kind() {
        return TreeKind.BREAK;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
